home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXmmmmMMMMeeeennnnuuuuSSSShhhheeeellllllll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmMMMMeeeennnnuuuuSSSShhhheeeellllllll((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- _X_m_M_e_n_u_S_h_e_l_l - The MenuShell widget class
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <Xm/MenuShell.h>
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The MenuShell widget is a custom OverrideShell widget. An
- OverrideShell widget bypasses _m_w_m when displaying itself.
- It is designed specifically to contain Popup or Pulldown
- MenuPanes.
-
- Most application writers never encounter this widget if they
- use the menu-system convenience functions, _X_m_C_r_e_a_t_e_P_o_p_u_p_M_e_n_u
- or _X_m_C_r_e_a_t_e_P_u_l_l_d_o_w_n _M_e_n_u, to create a Popup or Pulldown
- MenuPane. The convenience functions automatically create a
- MenuShell widget as the parent of the MenuPane. However, if
- the convenience functions are not used, the application
- programmer must create the required MenuShell. In this
- case, it is important to note that the parent of the
- MenuShell depends on the type of menu system being built.
-
- +o If the MenuShell is for the top-level Popup MenuPane,
- the MenuShell's parent must be the widget from which
- the Popup MenuPane is popped up.
-
- +o If the MenuShell is for a MenuPane that is pulled down
- from a Popup or another Pulldown MenuPane, the
- MenuShell's parent must be the Popup or Pulldown
- MenuPane.
-
- +o If the MenuShell is for a MenuPane that is pulled down
- from a MenuBar, the MenuShell's parent must be the
- MenuBar.
-
- +o If the MenuShell is for a Pulldown MenuPane in an
- OptionMenu, the MenuShell's parent must be the
- OptionMenu's parent.
-
- Setting _X_m_N_h_e_i_g_h_t, _X_m_N_w_i_d_t_h, or _X_m_N_b_o_r_d_e_r_W_i_d_t_h for either a
- MenuShell or its child sets that resource to the same value
- in both the parent and the child. An application should
- always specify these resources for the child, not the
- parent.
-
- For the managed child of a MenuShell, regardless of the
- value of the shell's _X_m_N_a_l_l_o_w_S_h_e_l_l_R_e_s_i_z_e, setting _X_m_N_x or
- _X_m_N_y sets the corresponding resource of the parent but does
- not change the child's position relative to the parent.
- _X_t_G_e_t_V_a_l_u_e_s for the child's _X_m_N_x or _X_m_N_y yields the value of
- the corresponding resource in the parent. The xxxx and yyyy
- coordinates of the child's upper left outside corner
-
-
-
- Page 1 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmMMMMeeeennnnuuuuSSSShhhheeeellllllll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmMMMMeeeennnnuuuuSSSShhhheeeellllllll((((3333XXXX))))
-
-
-
- relative to the parent's upper left inside corner are both
- zero minus the value of _X_m_N_b_o_r_d_e_r_W_i_d_t_h.
-
- CCCCllllaaaasssssssseeeessss
- MenuShell inherits behavior and resources from _C_o_r_e,
- _C_o_m_p_o_s_i_t_e, _S_h_e_l_l, and _O_v_e_r_r_i_d_e_S_h_e_l_l classes.
-
- The class pointer is _x_m_M_e_n_u_S_h_e_l_l_W_i_d_g_e_t_C_l_a_s_s.
-
- The class name is _X_m_M_e_n_u_S_h_e_l_l.
-
- NNNNeeeewwww RRRReeeessssoooouuuurrrrcccceeeessss
- MenuShell overrides the _X_m_N_a_l_l_o_w_S_h_e_l_l_R_e_s_i_z_e resource in
- Shell. The following table defines a set of widget
- resources used by the programmer to specify data. The
- programmer can also set the resource values for the
- inherited classes to set attributes for this widget. To
- reference a resource by name or by class in a .Xdefaults
- file, remove the _X_m_N or _X_m_C prefix and use the remaining
- letters. To specify one of the defined values for a
- resource in a .Xdefaults file, remove the _X_m prefix and use
- the remaining letters (in either lowercase or uppercase, but
- include any underscores between words). The codes in the
- access column indicate if the given resource can be set at
- creation time (C), set by using _X_t_S_e_t_V_a_l_u_e_s (S), retrieved
- by using _X_t_G_e_t_V_a_l_u_e_s (G), or is not applicable (N/A).
-
- XXXXmmmmMMMMeeeennnnuuuuSSSShhhheeeellllllll RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- _______________________________________________________________________
- XmNbuttonFontList XmCButtonFontList XmFontList dynamic CSG
- XmNdefaultFontList XmCDefaultFontList XmFontList dynamic CG
- XmNlabelFontList XmCLabelFontList XmFontList dynamic CSG
-
-
- _X_m_N_b_u_t_t_o_n_F_o_n_t_L_i_s_t
- Specifies the font list used for MenuShell's button
- descendants. If this value is NULL at initialization
- and if the value of _X_m_N_d_e_f_a_u_l_t_F_o_n_t_L_i_s_t is not NULL,
- _X_m_N_b_u_t_t_o_n_F_o_n_t_L_i_s_t is initialized to the value of
- _X_m_N_d_e_f_a_u_l_t_F_o_n_t_L_i_s_t. If the value of _X_m_N_d_e_f_a_u_l_t_F_o_n_t_L_i_s_t
- is NULL, _X_m_N_b_u_t_t_o_n_F_o_n_t_L_i_s_t is initialized by looking up
- the parent hierarchy of the widget for an ancestor that
- is a subclass of the XmBulletinBoard, VendorShell, or
- XmMenuShell widget class. If such an ancestor is
- found, _X_m_N_b_u_t_t_o_n_F_o_n_t_L_i_s_t is initialized to the
- _X_m_N_b_u_t_t_o_n_F_o_n_t_L_i_s_t of the ancestor widget. If no such
- ancestor is found, the default is implementation
- dependent.
-
- _X_m_N_d_e_f_a_u_l_t_F_o_n_t_L_i_s_t
- Specifies a default font list for MenuShell's
-
-
-
- Page 2 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmMMMMeeeennnnuuuuSSSShhhheeeellllllll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmMMMMeeeennnnuuuuSSSShhhheeeellllllll((((3333XXXX))))
-
-
-
- descendants. This resource is obsolete and exists for
- compatibility with earlier releases. It has been
- replaced by _X_m_N_b_u_t_t_o_n_F_o_n_t_L_i_s_t and _X_m_N_l_a_b_e_l_F_o_n_t_L_i_s_t.
-
- _X_m_N_l_a_b_e_l_F_o_n_t_L_i_s_t
- Specifies the font list used for MenuShell's label
- descendants (Labels and LabelGadgets). If this value
- is NULL at initialization and if the value of
- _X_m_N_d_e_f_a_u_l_t_F_o_n_t_L_i_s_t is not NULL, _X_m_N_l_a_b_e_l_F_o_n_t_L_i_s_t is
- initialized to the value of _X_m_N_d_e_f_a_u_l_t_F_o_n_t_L_i_s_t. If the
- value of _X_m_N_d_e_f_a_u_l_t_F_o_n_t_L_i_s_t is NULL, _X_m_N_l_a_b_e_l_F_o_n_t_L_i_s_t
- is initialized by looking up the parent hierarchy of
- the widget for an ancestor that is a subclass of the
- XmBulletinBoard, VendorShell, or XmMenuShell widget
- class. If such an ancestor is found, _X_m_N_l_a_b_e_l_F_o_n_t_L_i_s_t
- is initialized to the _X_m_N_l_a_b_e_l_F_o_n_t_L_i_s_t of the ancestor
- widget. If no such ancestor is found, the default is
- implementation dependent.
-
- IIIInnnnhhhheeeerrrriiiitttteeeedddd RRRReeeessssoooouuuurrrrcccceeeessss
- MenuShell inherits behavior and resources from the following
- superclasses. For a complete description of each resource,
- refer to the man page for that superclass. The following
- tables define a set of widget resources used by the
- programmer to specify data. The programmer can set the
- resource values for these inherited classes to set
- attributes for this widget. To reference a resource by name
- or by class in a .Xdefaults file, remove the _X_m_N or _X_m_C
- prefix and use the remaining letters. To specify one of the
- defined values for a resource in a .Xdefaults file, remove
- the _X_m prefix and use the remaining letters (in either
- lowercase or uppercase, but include any underscores between
- words). The codes in the access column indicate if the
- given resource can be set at creation time (C), set by using
- _X_t_S_e_t_V_a_l_u_e_s (S), retrieved by using _X_t_G_e_t_V_a_l_u_e_s (G), or is
- not applicable (N/A).
-
- SSSShhhheeeellllllll RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- ____________________________________________________________________________________________________
- XmNallowShellResize XmCAllowShellResize Boolean True G
- XmNcreatePopupChildProc XmCCreatePopupChildProc XtCreatePopupChildProc NULL CSG
- XmNgeometry XmCGeometry String NULL CSG
- XmNoverrideRedirect XmCOverrideRedirect Boolean True CSG
- XmNpopdownCallback XmCCallback XtCallbackList NULL C
- XmNpopupCallback XmCCallback XtCallbackList NULL C
- XmNsaveUnder XmCSaveUnder Boolean True CSG
- XmNvisual XmCVisual Visual * CopyFromParent CSG
-
-
- CCCCoooommmmppppoooossssiiiitttteeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
-
-
-
- Page 3 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmMMMMeeeennnnuuuuSSSShhhheeeellllllll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmMMMMeeeennnnuuuuSSSShhhheeeellllllll((((3333XXXX))))
-
-
-
- ______________________________________________________________________
- XmNchildren XmCReadOnly WidgetList NULL G
- XmNinsertPosition XmCInsertPosition XtOrderProc NULL CSG
- XmNnumChildren XmCReadOnly Cardinal 0 G
-
-
- CCCCoooorrrreeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- ______________________________________________________________________________________________________________
- XmNaccelerators XmCAccelerators XtAccelerators dynamic CSG
- XmNancestorSensitive XmCSensitive Boolean dynamic G
- XmNbackground XmCBackground Pixel dynamic CSG
- XmNbackgroundPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNborderColor XmCBorderColor Pixel XtDefaultForeground CSG
- XmNborderPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNborderWidth XmCBorderWidth Dimension 1 CSG
- XmNcolormap XmCColormap Colormap dynamic CG
- XmNdepth XmCDepth int dynamic CG
- XmNdestroyCallback XmCCallback XtCallbackList NULL C
- XmNheight XmCHeight Dimension dynamic CSG
- XmNinitialResourcesPersistent XmCInitialResourcesPersistent Boolean True C
- XmNmappedWhenManaged XmCMappedWhenManaged Boolean True CSG
- XmNscreen XmCScreen Screen * dynamic CG
- XmNsensitive XmCSensitive Boolean True CSG
- XmNtranslations XmCTranslations XtTranslations dynamic CSG
- XmNwidth XmCWidth Dimension dynamic CSG
- XmNx XmCPosition Position 0 CSG
- XmNy XmCPosition Position 0 CSG
-
-
- TTTTrrrraaaannnnssssllllaaaattttiiiioooonnnnssss
- The XmMenuShell translations are listed below. These
- translations may not directly correspond to a translation
- table.
- BSelect Press: ClearTraversal()
- BSelect Release:MenuShellPopdownDone()
-
- AAAAccccttttiiiioooonnnn RRRRoooouuuuttttiiiinnnneeeessss
- The XmMenuShell action routines are described below:
-
- _C_l_e_a_r_T_r_a_v_e_r_s_a_l():
- Disables keyboard traversal for the menu, enables mouse
- traversal, and unposts any menus posted by this menu.
-
- _M_e_n_u_S_h_e_l_l_P_o_p_d_o_w_n_D_o_n_e():
- Unposts the menu hierarchy and, when the shell's
- keyboard focus policy is _X_m_E_X_P_L_I_C_I_T, restores focus to
- the widget that had the focus before the menu system
- was entered.
-
- _M_e_n_u_S_h_e_l_l_P_o_p_d_o_w_n_O_n_e():
- In a toplevel Pulldown MenuPane from a MenuBar, unposts
-
-
-
- Page 4 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmMMMMeeeennnnuuuuSSSShhhheeeellllllll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmMMMMeeeennnnuuuuSSSShhhheeeellllllll((((3333XXXX))))
-
-
-
- the menu, disarms the MenuBar CascadeButton and the
- MenuBar, and, when the shell's keyboard focus policy is
- _X_m_E_X_P_L_I_C_T, restores keyboard focus to the widget that
- had the focus before the MenuBar was entered. In other
- Pulldown MenuPanes, unposts the menu.
-
- In a Popup MenuPane, unposts the menu, and, when the shell's
- keyboard focus policy is _X_m_E_X_P_L_I_C_T, restores keyboard focus
- to the widget from which the menu was posted.
-
- VVVViiiirrrrttttuuuuaaaallll BBBBiiiinnnnddddiiiinnnnggggssss
- The bindings for virtual keys are vendor specific. For
- information about bindings for virtual buttons and keys, see
- _V_i_r_t_u_a_l_B_i_n_d_i_n_g_s(_3_X).
-
- RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
- _C_o_m_p_o_s_i_t_e(_3_X), _C_o_r_e(_3_X), _O_v_e_r_r_i_d_e_S_h_e_l_l(_3_X), _S_h_e_l_l(_3_X),
- _X_m_C_r_e_a_t_e_M_e_n_u_S_h_e_l_l(_3_X), _X_m_C_r_e_a_t_e_P_o_p_u_p_M_e_n_u(_3_X),
- _X_m_C_r_e_a_t_e_P_u_l_l_d_o_w_n(_3_X), and _X_m_R_o_w_C_o_l_u_m_n(_3_X).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 5 (printed 11/11/03)
-
-
-
-